package com.ithema.d14_extends_constructor;

public class Test1 {
    public static void main(String[] args) {
        teacher t = new teacher("我",18,"JAVA");
    }
}

class teacher extends People{
    private String skill;
    public  teacher(String name,int age,String skill){}
    public String getSkill() {
        return skill;
    }
    public void setSkill(String skill) {
        this.skill = skill;
    }
}

class  People{
    private String name;
    private int age;

    public People() {
    }

    public People(int age, String name) {
        this.age = age;
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
